package com.example.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "tree.jwt")
public class JwtProperties {
    /**
     * 生成jwt令牌相关配置
     */
    private String secretKey;
    // Time To Live in Milliseconds 存活时间（毫秒）
    private Long ttlMillis;
    private String tokenName;
}